<?php 
class Zwei_Utils_Types{
	public function stripAccents($string)
	{
	    $string = ereg_replace("[äáàâãª]","a",$string);
	    $string = ereg_replace("[ÁÀÂÃÄ]","A",$string);
	    $string = ereg_replace("[ÍÌÎÏ]","I",$string);
	    $string = ereg_replace("[íìîï]","i",$string);
	    $string = ereg_replace("[éèêë]","e",$string);
	    $string = ereg_replace("[ÉÈÊË]","E",$string);
	    $string = ereg_replace("[óòôõöº]","o",$string);
	    $string = ereg_replace("[ÓÒÔÕÖ]","O",$string);
	    $string = ereg_replace("[úùûü]","u",$string);
	    $string = ereg_replace("[ÚÙÛÜ]","U",$string);
	    $string = ereg_replace("[^´`¨~]","",$string);
	    $string = str_replace("ç","c",$string);
	    $string = str_replace("Ç","C",$string);
	    $string = str_replace("ñ","n",$string);
	    $string = str_replace("Ñ","N",$string);
	    $string = str_replace("Ý","Y",$string);
	    $string = str_replace("ý","y",$string);
	    return $string;
	}	
}	
?>